﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WFDefined_StepList.aspx.cs" Inherits="Runda.CMS.Portal.WorkFlow.WFDefined_StepList" %>
<%@ Register TagPrefix="mwc" Namespace="Runda.CMS.Web.Controls" Assembly="Runda.CMS.Common.Application.Components" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <!-- Global --><LINK href="../Content/global.css" type="text/css" rel="stylesheet" />
		<script language="javascript" src="../Content/global.js"></script>
		<link href="../Content/Menu/Menu.css" type="text/css" rel="stylesheet" />
	<script language="javascript" src="../Content/Menu/menu.js"></script>
		   <link href="../Content/Form/form.css" type="text/css" rel="stylesheet" />
		 <script language="javascript" src="/_forms/FormBase.js"></script>
		<!-- Datetime & Number -->
		 <script language="javascript" src="../Content/settings.aspx"></script>

    <script language="javascript" src="../Content/DateTime/date.js"></script>

    <script language="javascript" src="../Content/DateTime/time.js"></script>

  <link href="../Content/Form/select.css" type="text/css" rel="stylesheet" />
		<!-- Lookup -->
		<script language="javascript" src="../Content/lookup/map_Lookup.js"></script>

    <script language="javascript" src="../Content/lookup/map_LookupDialogs.js"></script>
	 
		 <link href="../Content/Navigate/nav.css" type="text/css" rel="stylesheet" />

    <script language="javascript" src="../Content/Detail.js"></script>
		 <link href="../Content/Tab/tabs.css" type="text/css" rel="stylesheet" />
		<!-- Utility-->
	  <script language="javascript" src="../Content/util.js"></script>
	
		<!-- Repeater -->
		<link rel="stylesheet" type="text/css" href="../Content/Grid/mapgrid.css" />
		<script language="javascript" src="../Content/Grid/rep_grid.js"></script>
	
		<!-- Tree -->
		<link href="../Content/Tree/tree.css" type="text/css" rel="stylesheet" />
		<script type="text/javascript" src="WFDefined_StepList.js"></script>
		<!-- Workflow -->	
		<script type="text/javascript">

		    var laststepid;

		    function window.onload() {

		        var objTable = document.getElementById("tblStep");

		        if (objTable != null) {
		            for (var i = objTable.rows.length - 1; i >= 0; i--) {
		                if (i == 0) {
		                    laststepid = objTable.rows(0).code;
		                }


		                if (objTable.rows[i].type == "-1") {
		                    for (var j = objTable.rows[i].cells.length - 1; j >= 1; j--) {
		                        objTable.rows[i].deleteCell(j);
		                    }

		                    objTable.rows[i].cells[0].colSpan = 7;
		                    //objTable.rows[i].cells[0].style.backgroundColor = "#99cccc";
		                }
		            }


		        }
		    }

		    function showButton(obj, stepid) {
		        laststepid = stepid;
		        if (obj == "-1") {
		            parent.reDisplay("insButton,appButton,delButton");
		        }
		        else {
		            parent.deDisplay("insButton,appButton,delButton");
		        }
		    }
		</script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:TextBox id="txtProcessGUID" runat="server" style="DISPLAY:none"></asp:TextBox>
			<table style="TABLE-LAYOUT:fixed;WIDTH:100%;BORDER-COLLAPSE:collapse;HEIGHT:100%">
				<tr>
					<td>
						<!--repeate begin-->
						<table id="gridTitle" width="100%" height="23" cellpadding="0" cellspacing="0" border="0"
							style="TABLE-LAYOUT:fixed">
							<colgroup id="gridBarCols">
								<col>
								<col width="2">
								<col width="80">
								<col width="2">
								<col width="80">
								<col width="2">
								<col width="80">
							</colgroup>
							<tr pagesize="" align="center" height="23" valign="middle">
								<td class="gridBar">步骤列表</td>
								<td class="gridBar"><img src="images/bar_line.gif"></td>
								<td class="gridBar">权值</td>
								<td class="gridBar"><img src="images/bar_line.gif"></td>
								<td class="gridBar">提醒天数</td>
								<td class="gridBar"><img src="images/bar_line.gif"></td>
								<td class="gridBar">警告天数</td>
							</tr>
						</table>
						<div style="OVERFLOW:auto;WIDTH:100%;HEIGHT:87%">
							<mwc:repeater id="repeater1" runat="server" EnablePager="false" FooterCssClass="footer" LinkCssClass="a1"
								LinkAlign="right" PKField="Code" SortSignASC='<img src="/_imgs/ico_arrow_u.gif">' SortSignDESC='<img src="/_imgs/ico_arrow_d.gif">'>
								<HeaderTemplate>
									<TABLE id="tblStep" cellspacing="0" cellpadding="0" class="singleSelectTree" defaultShowLevel="1"
										style="TABLE-LAYOUT:fixed;WIDTH:100%">
										<colgroup id="gridBarCols">
											<col>
											<col width="2" align="center">
											<col width="80" align="center">
											<col width="2" align="center">
											<col width="80" align="center">
											<col width="2" align="center">
											<col width="80" align="center">
										</colgroup>
								</HeaderTemplate>
								<ItemTemplate>
									<TBODY>
										<tr class="gridData" height='20' code='<%# DataBinder.Eval(Container, "DataItem.Code") %>' type='<%# DataBinder.Eval(Container, "DataItem.Type") %>' is_hide="false" 
											onclick="tblStep.clickNode(this);showButton(this.type,this.code);" >
											<td colspan="2" class="gridData" nowrap>
												<span></span><label style="CURSOR: hand" onclick="return;Table1.clickNode(this.parentElement.parentElement);">
												</label>
												<%# DataBinder.Eval(Container, "DataItem.Name") %>
											</td>
											<td colspan="2" class="gridData">
												<%# DataBinder.Eval(Container, "DataItem.RightValue") %>
												&nbsp;
											</td>
											<td colspan="2" class="gridData">
											 
												&nbsp;
											</td>
											<td class="gridData">
										 
												&nbsp;
											</td>
										</tr>
								</ItemTemplate>
								<FooterTemplate>
			</table>
			</DIV></FOOTERTEMPLATE></mwc:repeater> 
			<!--repeate end--> </TD>
			<tr>
				<td>
					<asp:LinkButton id="LinkButton1" runat="server" style="display:none">LinkButton</asp:LinkButton></td>
			</tr>
			</TR></TBODY></TABLE>
    </form>
</body>
</html>
